/*!
CUSTOM CSS hier rein


    VOMBERG BLAU: #002c76
    VOMBERG GR�N: #009a3e
    font-family: "Helvetica Neue", Helvetica, Arial, serif;

    FICHTNER BLAU DUNKEL: #001E3C
    FICHTNER BLAU HELL: #007FFF
 */

html * {
    font-family: "Helvetica Neue", Helvetica, Arial, serif;
}

@media (max-width: 768px) {

    h1 {
        font-size: 1.9rem;
    }

    h4 {
        font-size: 1.3rem;
    }
}

.nav-dropdown-item-main:hover {
    background-color: #001E3C !important; /* Change background color */
    color: #fff; /* Change text color */
    font-weight: bold; /* Make font bold */
    /* Add any other styles you want */
}

.nav-dropdown-item-secondary:hover {
    background-color: #f8f9fa !important; /* Change background color */
    font-weight: bold; /* Make font bold */
    /* Add any other styles you want */
}

.nav-dropdown-item-secondary-text {
    color: #001E3C !important; /* Change text color */
    /* Add any other styles you want */
}

.nav-dropdown-item-main:hover .bi-arrow-right-short {
    color: #007FFF; /* �ndert die Farbe des Icons beim Hover auf Blau Hell */
}

.nav-dropdown-item-secondary:hover .bi-arrow-right-short {
    color: #007FFF; /* �ndert die Farbe des Icons beim Hover auf Blau Hell */
}

.bg-success-opacity {
    background-color: rgba(40, 167, 69, 0.1) !important;
}

.carousel-indicators .active {
    background-color: #007FFF;
}

.carousel-indicators li {
    background-color: #001E3C;
}

.card-header {
    background-color: #f8f9fa;
}

.card-footer {
    background-color: #f8f9fa !important;
}

.badge-primary {
    background-color: #001E3C !important;
}

a.text-primary:focus,
a.text-primary:hover {
    color: #007FFF !important; /* Change text color to blue on hover and focus */
}

.product-link {
    font-weight: normal;
    text-decoration: none; /* Remove default underline */
    position: relative;
    transition: all 0.15s ease;
    color: inherit; /* Inherit the original text color */
}

    .product-link:hover {
        text-decoration: none; /* Ensure no default underline on hover */
    }

    .product-link::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 2px; /* Thinner underline */
        background-color: transparent;
        left: 0;
        bottom: -2px; /* Adjusts the position of the underline */
        transform: scaleX(0);
        transform-origin: bottom right;
        transition: transform 0.3s ease, background-color 0.3s ease;
    }

    .product-link:hover::after {
        transform: scaleX(1);
        background-color: #001E3C; /* Fichtner Blau Dunkel */
        transform-origin: bottom left;
    }

.custom-control-input:checked ~ .custom-control-label::before {
    background-color: #001E3C; /* Change this color to whatever you prefer */
    border-color: #001E3C; /* This will also change the border color */
}

@media (min-width: 992px) {
    .max-sizes-lg {
        max-height:500px;
        min-height:500px;
    }
}

.max-sizes-articelist {
    height: 40px;
}

    .max-sizes-articelist .img-responsive {
        display: block;
        width: auto;
        max-height: 100%;
    }

.max-sizes-articelist {
    height: 40px;
}

    .max-sizes-articelist .img-responsive {
        display: block;
        width: auto;
        max-height: 100%;
    }

.table-striped > tbody > tr:nth-child(odd) > td,
.table-striped > tbody > tr:nth-child(odd) > th {
    background-color: #f8f9fa !important;
}

.table-hover tbody tr:hover td, .table-hover tbody tr:hover th {
    background-color: #f8f9fa !important;
}

.form-control:focus {
    border-color: #001E3C !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 30, 60, 0.25);
}

.text-primary {
    color: #001E3C !important;
}

.text-primarycustom {
    color: #001E3C;
}

.text-info {
    color: #001E3C !important;
}

.text-success {
    color: #007FFF !important;
}

.vomberg-custom-hover:hover {
    color: #007FFF !important;
}

.vomberg-custom-hover-white:hover {
    color: white !important;
}

.vomberg-custom-hover-blue:hover {
    color: #001E3C !important;
}

.dropdown-item:hover {
    background: #007FFF;
}

.vomberg-custom-hover-btn-blue:hover {
    background-color: #001E3C !important;
}

.vomberg-custom-hover-btn-green:hover {
    background-color: #007FFF !important;
}

.btn-success {
    background-color: #007FFF !important;
    border-color: #007FFF !important;
}

.btn-success:hover {
    background-color: #001E3C !important;
    border-color: #001E3C !important;
}

.btn-success:focus,
.btn-success:active,
.btn-success.active {
    background-color: #001E3C !important;
    border-color: #001E3C !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 127, 255, 0.5) !important;
    outline: none !important;
}

.btn-primary {
    background-color: #001E3C !important;
    border-color: #001E3C !important;
}

.btn-primary:hover {
    background-color: #007FFF !important;
    border-color: #007FFF !important;
    color: white;
}

.btn-primary:focus,
.btn-primary:active,
.btn-primary.active {
    background-color: #007FFF !important;
    border-color: #007FFF !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 30, 60, 0.5) !important;
    outline: none !important;
}

.btn-outline-primary {
    color: #001E3C !important;
    border-color: #001E3C !important;
}

.btn-outline-primary:hover {
    color: white !important;
    background-color: #001E3C !important;
    border-color: #001E3C !important;
}

.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary.active {
    color: white !important;
    background-color: #001E3C !important;
    border-color: #001E3C !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 30, 60, 0.5) !important;
    outline: none !important;
}

.btn-info {
    background-color: #001E3C !important;
    border-color: #001E3C !important;
}

.bg-primary {
    background-color: #001E3C !important;
}

.page-item.active .page-link {
    z-index: 3;
    color: #fff;
    background-color: #001E3C;
    border-color: #007bff;
    border: 1px solid #dee2e6;
}

.page-link {
    color: #001E3C;
    border: 1px solid #dee2e6;
}

.page-link:hover {
    color: #001E3C;
}


.page-link:focus {
    box-shadow: none;
}

.tooltip-inner {
    background: #001E3C !important;
}


.tag-custom {
    float: right;
    position: absolute;
    right: -10px;
    top: 40px;
    z-index: 5;
/*    background-color: #f8f9fa;
    color: #002c76;*/
/*    font-weight: bold;*/
}

.tag-left-custom {
    float: left;
    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 5;
    /*    background-color: #f8f9fa;
    color: #002c76;*/
    /*    font-weight: bold;*/
}

.cover {
    object-fit: cover;
    width: 400px;
    height: 400px;
}

.hero {
    position: relative;
    height: 100px !important;
    width: 100% !important;
}

    .hero:after {
        z-index: -1;
        position: absolute;
        top: -10%;
        left: 50%;
        margin-left: -10px;
        content: '';
        width: 0;
        height: 0;
        border-bottom: solid 10px #002c76;
        border-left: solid 10px transparent;
        border-right: solid 10px transparent;
    }

.border-primary {
    border-color: #002c76  !important;
}

.tag-custom-history {
    float: right;
    position: absolute;
    right: -5px;
    top: 5px;
    z-index: 1000;
    /*    background-color: #f8f9fa;
    color: #002c76;*/
    /*    font-weight: bold;*/
}

.card-warenkorb-custom {
    background-color: #fff;
    background-clip: border-box;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 1rem;
}

.tag-custom-product {
    float: right;
    position: absolute;
    right: +10px;
    top: 40px;
    z-index: 5;
    /*    background-color: #f8f9fa;
    color: #002c76;*/
    /*    font-weight: bold;*/
}

/* ========================================
   SUGGEST DROPDOWN STYLES (Vomberg Theme)
   ======================================== */

/* === SUGGEST CONTAINER BASE === */
#suggestContainer {
    max-height: 80vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
    border-radius: 8px !important;
}

/* Custom Scrollbar */
#suggestContainer::-webkit-scrollbar {
    width: 8px;
}

#suggestContainer::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 8px 8px 0;
}

#suggestContainer::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

#suggestContainer::-webkit-scrollbar-thumb:hover {
    background: #002c76; /* Vomberg Blau */
}

/* === SUGGEST SECTIONS === */
.suggest-section {
    padding: 12px 16px;
    border-bottom: 1px solid #dee2e6;
}

.suggest-section:last-child {
    border-bottom: none;
}

.suggest-section-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

/* === SEARCH TERM CHIPS === */
.suggest-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.suggest-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    color: white !important;
}

.suggest-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,44,118,0.3);
    text-decoration: none;
}

/* === MAIN CONTENT (Products + Categories) === */
.suggest-main-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    padding: 16px;
}

/* === PRODUCTS === */
.suggest-products {
}

.suggest-product-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.suggest-product-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    background: #f8f9fa;
}

.suggest-product-item:hover {
    background: rgba(0, 154, 62, 0.1); /* Vomberg Gr�n mit 10% Opacity */
    transform: translateX(4px);
    text-decoration: none;
}

.suggest-product-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 6px;
    padding: 4px;
    border: 1px solid #dee2e6;
    overflow: hidden; /* Verhindert �berlappung des Borders */
}

.suggest-product-image img {
    max-width: 100% !important; /* �berschreibt inline-styles von ResourceList */
    max-height: 100% !important; /* �berschreibt inline-styles von ResourceList */
    width: auto !important;
    height: auto !important;
    object-fit: contain;
}

.suggest-product-info {
    flex: 1;
    min-width: 0;
}

.suggest-product-name {
    display: block;
    font-size: 0.85rem;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* === CATEGORIES === */
.suggest-categories {
}

.suggest-category-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.suggest-category-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    background: #f8f9fa;
}

.suggest-category-item:hover {
    background: rgba(0, 154, 62, 0.1); /* Vomberg Gr�n mit 10% Opacity */
    transform: translateX(4px);
    text-decoration: none;
}

.suggest-category-item i {
    font-size: 0.7rem;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.suggest-category-item:hover i {
    opacity: 1;
}

/* === EMPTY STATES === */
.suggest-empty-message {
    font-size: 0.85rem;
    margin: 8px 0 0 0;
    font-style: italic;
}

.suggest-empty {
    padding: 40px 20px;
}

/* === KEYBOARD NAVIGATION === */
.keyboard-selected {
    background: #002c76 !important; /* Vomberg Blau */
    color: white !important;
    outline: 2px solid #009a3e; /* Vomberg Gr�n */
    outline-offset: -2px;
}

.keyboard-selected .suggest-product-name,
.keyboard-selected i {
    color: white !important;
}

/* === MOBILE RESPONSIVE === */
@media (max-width: 991px) {
    .suggest-main-content {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .suggest-products {
        border-bottom: 1px solid #dee2e6;
        padding-bottom: 12px;
        margin-bottom: 12px;
    }

    .suggest-category-list {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }

    .suggest-category-item {
        flex: 0 0 auto;
        font-size: 0.8rem;
        padding: 6px 10px;
    }

    #suggestContainer {
        max-height: 70vh !important;
    }
}

@media (max-width: 576px) {
    .suggest-section {
        padding: 10px 12px;
    }

    .suggest-product-image {
        width: 50px;
        height: 50px;
    }

    .suggest-product-name {
        font-size: 0.8rem;
    }

    .suggest-section-title {
        font-size: 0.8rem;
    }

    .suggest-chip {
        font-size: 0.75rem;
        padding: 5px 10px;
    }

    .suggest-category-item {
        font-size: 0.75rem;
        padding: 5px 8px;
    }
    
    #suggestContainer {
        min-width: unset !important;
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        box-sizing: border-box !important;
        border-radius: 8px;
        box-shadow: 0 6px 24px rgba(0,0,0,0.2);
    }
}

/* === PRODUCTS FULL WIDTH === */
.suggest-products-full {
    width: 100%;
}

.suggest-products-full .suggest-product-item {
    max-width: 100%;
}

.suggest-categories-full {
    width: 100%;
}

/* === LOADING SPINNER === */
.suggest-loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #002c76; /* Vomberg Blau */
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* === GRUPPENKACHEL: kein Bild, sondern der Gruppenname als moderne "Nameplate"
   (Kundenwunsch Fichtner). Wird in DREI Markup-Kontexten gerendert:
     1) Relaunch-Kachel (Group.cshtml): a > .tile-card.tile-card--group > .tile-card__media > .group-name-fallback
     2) Aeltere Karten (AssignedGroupsAndProducts/AssignedItemsProduct): .card > (a >) .card-body > .group-name-fallback
     3) Bare (ArticleListing): a > .group-name-fallback
   Die Basis unten ist eine SELBSTSTAENDIGE Kachel (Rahmen/Rundung/Akzent) fuer (2)+(3);
   im Relaunch-Kontext (1) liefert .tile-card den Rahmen -> dort Fallback-Chrome neutralisieren. === */
.group-name-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    height: 100%;
    min-height: 190px;
    padding: 1.75rem 1.35rem;
    color: #001E3C; /* Fichtner Dunkelblau */
    /* dezenter, moderner Verlauf mit leichtem Blau-Glow oben */
    background:
        radial-gradient(130% 90% at 50% -10%, rgba(0, 127, 255, .07), rgba(0, 127, 255, 0) 55%),
        linear-gradient(160deg, #f2f6fb 0%, #ffffff 72%);
    border: 1px solid #dbe3ec;
    border-radius: 14px;
    /* .card-img-top (aspect-ratio 1/1, max-height) neutralisieren */
    aspect-ratio: auto;
    max-height: none;
    overflow: hidden;
    transition: background .3s ease, box-shadow .3s ease;
}

.group-name-fallback-text {
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.25;
    letter-spacing: .005em;
    word-break: break-word;
    /* Lange Namen auf 3 Zeilen begrenzen */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Marken-Akzentbalken unter dem Namen (echot .hero-accent) – waechst beim Hover. */
.group-name-fallback-text::after {
    content: "";
    display: block;
    width: 34px;
    height: 3px;
    margin: .8rem auto 0;
    border-radius: 2px;
    background: #007FFF; /* Fichtner Hellblau */
    transition: width .3s ease;
}

/* --- Kontext (2): Card-Chrome entfernen, der Platzhalter IST die Kachel. --- */
.card:has(> .card-body > .group-name-fallback),
.card:has(> a > .card-body > .group-name-fallback) {
    border: none;
    background: transparent;
    box-shadow: none !important;
}

.card-body:has(> .group-name-fallback) {
    padding: 0;
}

.card:has(.group-name-fallback):hover .group-name-fallback {
    background:
        radial-gradient(130% 90% at 50% -10%, rgba(0, 127, 255, .12), rgba(0, 127, 255, 0) 55%),
        linear-gradient(160deg, #e9f1fb 0%, #ffffff 74%);
    box-shadow: 0 10px 24px rgba(0, 44, 118, .10);
}

.card:has(.group-name-fallback):hover .group-name-fallback-text::after {
    width: 60px;
}

/* --- Kontext (1) Relaunch-Kachel: .tile-card liefert Rahmen/Rundung/Hover-Schatten,
   daher Fallback-eigene Chrome entfernen und randlos in die Media-Flaeche einpassen. --- */
.tile-card--group .tile-card__media:has(> .group-name-fallback) {
    padding: 0;
    border-radius: 14px; /* alle Ecken (Basis-Regel rundet nur unten) */
    overflow: hidden;
}

.tile-card--group .group-name-fallback {
    min-height: 0; /* Hoehe kommt aus .tile-card__media (aspect-ratio 4/3) */
    border: none;
    border-radius: 0;
}

.tile-card--group:hover .group-name-fallback {
    background:
        radial-gradient(130% 90% at 50% -10%, rgba(0, 127, 255, .12), rgba(0, 127, 255, 0) 55%),
        linear-gradient(160deg, #e9f1fb 0%, #ffffff 74%);
}

.tile-card--group:hover .group-name-fallback-text::after {
    width: 60px;
}

/* ==== Hero-Karten: Akzent-Tint auf fichtner-Blau (statt Vomberg-Gruen) ============
   Ueberschreibt die theme-agnostischen Defaults aus "Bootstrap Standard.css",
   damit die geteilte Datei branchgleich bleibt. .hero-accent bekommt die Akzentfarbe
   hier (im Markup KEIN bg-success -> sonst Bootstrap-Gruen). */
.hero-feature-chip {
    background-color: rgba(0, 127, 255, .10) !important;
}

.hero-feature-card:hover .hero-feature-chip {
    background-color: rgba(0, 127, 255, .18) !important;
}

.hero-accent {
    background-color: #007FFF;
}